package br.com.gaacorp.sai.model;

import java.io.Serializable;

import javax.persistence.Embeddable;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * This class is used to represent an professor with rm and schoolClass
 * information.
 * 
 * @author guilherme de assis
 */
@Embeddable
public class Professor extends BaseObject implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8862091967169172822L;

	private String rm;
	

	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof Professor)) {
			return false;
		}

		final Professor professor = (Professor) o;

		return this.hashCode() == professor.hashCode();
	}

	public String getRm() {
		return rm;
	}


	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}



	public void setRm(String rm) {
		this.rm = rm;
	}


	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("rm", this.rm).toString();
	}

}
